package icu.xuyijie.springbootlearning1.chapter4.thymeleaf;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author 徐一杰
 * @date 2025/03/07 14:03
 * @description
 */
@Controller
@RequestMapping("/thymeleaf")
public class ThymeleafController {

    @GetMapping("/home")
    public String home(Model model) {
        model.addAttribute("msg", "这是徐一杰的主页");
        return "index";
    }

}
